<template>
  <div class="echart-xAxis-name">
    <FormItem
      :form="form"
      option="echart.xAxis.nameLocation"
      :label="$demoi18n('echart.label.axisNameDisplayPosition')"
      type="select"
      :options="axisNameLocations"
    />
    <FormItem
      :form="form"
      option="echart.xAxis.nameGap"
      :label="$demoi18n('echart.label.axisNameAndAxisDistance')"
      type="number"
    />
    <FormItem
      :form="form"
      option="echart.xAxis.nameRotate"
      :label="$demoi18n('echart.label.axisNameRotationAngle')"
      type="number"
    />
    <FormItem
      :form="form"
      option="echart.xAxis.nameTextStyle.color"
      :label="$demoi18n('panel.label.fontColor')"
      type="color"
    />
    <FormItem
      :form="form"
      option="echart.xAxis.nameTextStyle.fontSize"
      :label="$demoi18n('word.fontSize')"
      type="number"
    />
    <FormItem
      :form="form"
      option="echart.xAxis.nameTextStyle.fontWeight"
      :label="$demoi18n('echart.label.bold')"
      type="select"
      :options="fontWeightOptions"
    />
    <FormItem
      :form="form"
      option="echart.xAxis.nameTextStyle.fontFamily"
      :label="$demoi18n('echart.label.fonts')"
      type="select"
      :options="fontFamilyOptions"
    />
  </div>
</template>
<script>
import FormItem from '@/components/common/echart/form-item.vue';
import {
  axisNameLocations,
  fontWeightOptions,
  fontFamilyOptions,
} from '@/components/common/echart/form-item-options.js';
export default {
  components: { FormItem },
  props: {
    form: Object,
  },
  data() {
    return {
      axisNameLocations,
      fontWeightOptions,
      fontFamilyOptions,
    };
  },
  computed: {},
  watch: {},
  methods: {},
};
</script>
<style lang="less" scoped></style>
